package com.imooc.enums;

import lombok.Getter;

/**
 * Created by 廖师兄
 * 2017-06-11 17:12
 *
 * @author 廖师兄
 */
@Getter
public enum OrderStatusEnum implements CodeEnum {

    /**
     * 新订单
     */
    NEW(0, "新订单"),

    /**
     * 完结
     */
    FINISHED(1, "完结"),

    /**
     * 已取消
     */
    CANCEL(2, "已取消"),
    ;

    /**
     * 状态码
     */
    private final Integer code;

    /**
     * 提示信息
     */
    private final String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
